﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CooWork.Core
{
    public static class StringFunc
    {
        public static string HtmlAreaEncode(string s)
        {
   
            s = s.Replace("\r","<br/>");
            s = s.Replace("\n", "<br/>");
            s = s.Replace(" ", "&nbsp;");

            return s;

        }

    }


}
